package com.hopedove.productionworkshop

import android.app.Application
import com.hopedove.commonKoinModule
import com.hopedove.workshop.workshopModule
import com.orhanobut.logger.AndroidLogAdapter
import com.orhanobut.logger.Logger
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin

class MyApplication : Application() {
    override fun onCreate() {
        super.onCreate()

        startKoin {
            androidContext(this@MyApplication)
            modules(commonKoinModule, appMainModule, workshopModule)
        }

        Logger.addLogAdapter(AndroidLogAdapter())
    }

}